var dateTimeFormat = function time_format(time) {
    // 判断时间戳是否为13位数，如果不是则*1000，时间戳只有13位数(带毫秒)和10(不带毫秒)位数的
    if (time.toString().length == 13) {
        var time = getDate(time);
    } else {
        var time = getDate(time * 1000);
    }
    var year = time.getFullYear();
    var month = (time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1);
    var date = time.getDate();
    var hour = time.getHours();
    var minute = time.getMinutes();
    var second = time.getSeconds();
    tem1 = Y + '-' + M + '-' + D + ' ' + h + ':' + m + ':' + s
    return tem1;
}
//导出
module.exports = {
    time_format: time_format
}